package StudyCode.summary.zipfile;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReadCharFromFileUsingDataInputStream {
	public static void main(String[] args) {

		String strFilePath = "E:/Copy/2.txt";
		try {
			FileInputStream fin = new FileInputStream(strFilePath);
			DataInputStream din = new DataInputStream(fin);
			char b = din.readChar();
			System.out.println("char : " + b);
			din.close();
		} catch (FileNotFoundException fe) {
			fe.printStackTrace();
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}
}
